<%@page import="helpers.UrlHelper"%>
<%
String title = (String) request.getParameter("title");
String description = (String) request.getParameter("description");
String keywords = (String) request.getParameter("keywords");
String ogSiteName = (String) request.getParameter("ogsite_name");
String ogTitle = (String) request.getParameter("ogtitle"); 
String ogUrl = (String) request.getParameter("ogurl");
String ogImage = (String) request.getParameter("ogimage");
String ogDescription = (String) request.getParameter("ogdescription");

if (title == null)
	title = "JavaMonday Tutorials";

if (description == null)
	description = "JavaMonday Tutorials for java, javascript, php, XML, Spring, Database, Ajax....";

if (keywords == null)
	keywords = "JSP Tutorials, EJB Tutorials, JDBC Tutorials, Java Servlets Tutorials, WAP Tutorials, Spring Framework Tutorials, J2EE Tutorials, BioInformatics Tutorials, Java Server Faces Tutorials, Jboss Tutorials, Hibernate Tutorials, XML and MySQL Tutorials";

if (ogSiteName == null)
	ogSiteName = "JavaMonday.com";

if (ogTitle == null)
	ogTitle = "JavaMonday Tutorials";

if (ogDescription == null)
	ogDescription = "JavaMonday Tutorials for java, javascript, php, XML, Spring, Database, Ajax....";

if (ogUrl == null)
	ogUrl = UrlHelper.getServerUrl(request);

if (ogImage == null)
	ogImage = UrlHelper.getServerUrl(request) + "/images/logo.png";

%>
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="description" content="<%=description.replaceAll("[\"\']+", "")%>" >
<meta name="Keywords" content="<%=keywords.replaceAll("[\"\']+", "")%>" >
<meta itemprop="name" content="<%=ogTitle.replaceAll("[\"\']+", "")%>" />    
<meta itemprop="description" content="<%=ogDescription %>" />
<meta property="og:site_name" content="<%=ogSiteName %>" >
<meta property="og:title" content="<%=ogTitle.replaceAll("[\"\']+", "")%>" >
<meta property="og:url" content="<%=ogUrl%>" >
<meta property="og:image" content="<%=ogImage%>" >
<meta property="og:description" content="<%=ogDescription %>" >

<link rel="stylesheet" type="text/css" href="/css/style.css" />
<link rel="stylesheet" type="text/css" href="/css/custom.css" />
<script type="text/javascript" src="/js/jquery-1.8.3.min.js"></script>
<script type="text/javascript" src="/js/script.js"></script>

<title><%=title%></title>
</head>
<body>
	<header>
	<div class="headerContent clearafter">
		<div id="logo" class="left">
			<a title="World of template" href="/">
				<img src="/images/logo.png" />
			</a>
		</div>
		<div class="right">
			<script type="text/javascript"><!--
			google_ad_client = "ca-pub-2883566427648799";
			/* ads 728x90 */
			google_ad_slot = "6443569882";
			google_ad_width = 728;
			google_ad_height = 90;
			//-->
			</script>
			<script type="text/javascript"
			src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
			</script>
		</div>
	</div>
	<nav>
	<ul class="menu clearafter">
		<li class="menu-item-home current-menu-item">
			<a href="/">Home</a>
		</li>
		<li class="">
			<a href="/java/">Java</a>
		</li>
		<li class="">
			<a href="/frameworks/">Frameworks</a>
		</li>
		<li class="">
			<a href="/databases/">Databases</a>
		</li>
		<li class="">
			<a href="/technology/">Technology</a>
		</li>
		<li class="">
			<a href="/webdevelopment/">Web development</a>
		</li>
		<li class="">
			<a href="/testtool/">Build/Test Tools</a>
		</li>
		<li class="">
			<a href="/servers/">Servers</a>
		</li>
		<li class="">
			<a href="/php/">PHP</a>
		</li>
	</ul>
	</nav> </header>
	<section id="content">
	<div id="content_inner">